package com.ds.infra.mq.core.config;

import lombok.Data;

/**
 * 作用：Netty配置类
 *
 * @author WeiShaoying
 */
@Data
public class NettyConfig {

    /**
     * TCP参数配置
     */
    private int soBacklog = 128;
    /**
     * 禁用Nagle算法，减少延迟
     */
    private boolean tcpNoDelay = true;
    private boolean soKeepAlive = true;
    private int writeBufferHighWaterMark = 64 * 1024;
    private int writeBufferLowWaterMark = 32 * 1024;
}
